package com.easyaccount;

import com.alibaba.fastjson.JSON;
import com.easyaccount.model.BusinessInfo;
import com.easyaccount.model.Hotel;

import java.util.List;

public class T {

    public static void main(String[] args) {
        String s = "{\"startDate\":\"2020-07-28\",\"endDate\":\"2020-08-03\",\"reasons\":\"10\",\"address\":\"11\",\"proposerName\":\"78\"}";

        BusinessInfo b =  JSON.parseObject(s,BusinessInfo.class);
        System.out.println(b);
    }

}
